﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace BPM.Web.Shared.Data;

/// <summary>
/// 登录输入参数
/// </summary>
public partial class LoginInput : BaseVM
{
    /// <summary>
    /// 用户名
    /// </summary>
    [DisplayName("用户名")]
    [JsonPropertyName("account")]
    [Required(ErrorMessage = "用户名不能为空")]
    [StringLength(int.MaxValue, MinimumLength = 5)]
    public string? Account { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    [DisplayName("密码")]
    [JsonPropertyName("password")]
    [Required(ErrorMessage = "密码不能为空")]
    [StringLength(int.MaxValue, MinimumLength = 5)]
    public string? Password { get; set; }
}
